package com.borened.common.core.base;

import com.borened.common.core.util.TreeTool;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 通用的树形结构实体
 * 业务上有类似的结构的直接继承该类，尽量使用DTO对象继承而不是数据库对象DO
 *
 * @author: cch
 * @since: 2021/12/22
 * @see TreeTool
 */
@Data
public class TreeEntity implements Serializable {

    private static final long serialVersionUID = 8202897485672267808L;

    private String nodeId;
    private String parentNodeId;
    private List<TreeEntity> childNodes;
}
